package com.ydgk.jishuzhan.service.impl;

import com.ydgk.jishuzhan.beans.UserInfo;
import com.ydgk.jishuzhan.dao.UserInfoMapper;
import com.ydgk.jishuzhan.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoServiceImpl implements UserInfoService{

    @Autowired
    private UserInfoMapper userInfoMapper;


    @Override
    public UserInfo findOne(Integer id) {
        return userInfoMapper.findOne(id);
    }

    @Override
    public void updateUserInfo(UserInfo userInfo) {
        userInfoMapper.update(userInfo);
    }
}
